{extend name='table'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='jxsintegral/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            sort: {field: 'id', type: 'desc'},
            cols: [[
                {checkbox: true},
                {field: 'id', title: '序号', width: 70, sort: true, align: 'center'},
                {field: 'integral', title: '{:lang("积分数值")}'},
                {field: 'user_id', title: '{:lang("用户编号")}'}
            ]]
        });
    });
</script>
<!-- 操控面板的模板 -->
<script type="text/html" id="toolbar">
   
    {if auth('edit')}
    <a class="layui-btn layui-btn-sm" data-event-dbclick data-title="编辑账号" data-modal='{:url("edit")}?id={{d.id}}'>{:lang('编 辑')}</a>
    {/if}
   
    {if auth('remove')}
    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除账号吗？" data-action="{:url('remove')}" data-value="id#{{d.id}}"  >删 除</a>
    {/if}

</script>
{/block}